package day2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		ApplicationContext ctx = SpringApplication.run(DemoApplication.class, args);
		for (String s : ctx.getBeanDefinitionNames()) {
			System.out.println(s);
		}
		Object o;
		System.out.println(ctx.getBean("hello"));

	}

}
